Optimal. Leaf size=86 \[ \frac{35}{2} a^4 b^3 x^2+\frac{35}{3} a^3 b^4 x^3+\frac{21}{4} a^2 b^5 x^4+21 a^5 b^2 x+7 a^6 b \log (x)-\frac{a^7}{x}+\frac{7}{5} a b^6 x^5+\frac{b^7 x^6}{6} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0321975, antiderivative size = 86, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 11, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.091, Rules used = {43} \[ \frac{35}{2} a^4 b^3 x^2+\frac{35}{3} a^3 b^4 x^3+\frac{21}{4} a^2 b^5 x^4+21 a^5 b^2 x+7 a^6 b \log (x)-\frac{a^7}{x}+\frac{7}{5} a b^6 x^5+\frac{b^7 x^6}{6} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rubi steps
\begin{align*} \int \frac{(a+b x)^7}{x^2} \, dx &=\int \left (21 a^5 b^2+\frac{a^7}{x^2}+\frac{7 a^6 b}{x}+35 a^4 b^3 x+35 a^3 b^4 x^2+21 a^2 b^5 x^3+7 a b^6 x^4+b^7 x^5\right ) \, dx\\ &=-\frac{a^7}{x}+21 a^5 b^2 x+\frac{35}{2} a^4 b^3 x^2+\frac{35}{3} a^3 b^4 x^3+\frac{21}{4} a^2 b^5 x^4+\frac{7}{5} a b^6 x^5+\frac{b^7 x^6}{6}+7 a^6 b \log (x)\\ \end{align*}
Mathematica [A] time = 0.0048845, size = 86, normalized size = 1. \[ \frac{35}{2} a^4 b^3 x^2+\frac{35}{3} a^3 b^4 x^3+\frac{21}{4} a^2 b^5 x^4+21 a^5 b^2 x+7 a^6 b \log (x)-\frac{a^7}{x}+\frac{7}{5} a b^6 x^5+\frac{b^7 x^6}{6} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.006, size = 77, normalized size = 0.9 \begin{align*} -{\frac{{a}^{7}}{x}}+21\,{a}^{5}{b}^{2}x+{\frac{35\,{a}^{4}{b}^{3}{x}^{2}}{2}}+{\frac{35\,{a}^{3}{b}^{4}{x}^{3}}{3}}+{\frac{21\,{a}^{2}{b}^{5}{x}^{4}}{4}}+{\frac{7\,a{b}^{6}{x}^{5}}{5}}+{\frac{{b}^{7}{x}^{6}}{6}}+7\,{a}^{6}b\ln \left ( x \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.03052, size = 103, normalized size = 1.2 \begin{align*} \frac{1}{6} \, b^{7} x^{6} + \frac{7}{5} \, a b^{6} x^{5} + \frac{21}{4} \, a^{2} b^{5} x^{4} + \frac{35}{3} \, a^{3} b^{4} x^{3} + \frac{35}{2} \, a^{4} b^{3} x^{2} + 21 \, a^{5} b^{2} x + 7 \, a^{6} b \log \left (x\right ) - \frac{a^{7}}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.79872, size = 189, normalized size = 2.2 \begin{align*} \frac{10 \, b^{7} x^{7} + 84 \, a b^{6} x^{6} + 315 \, a^{2} b^{5} x^{5} + 700 \, a^{3} b^{4} x^{4} + 1050 \, a^{4} b^{3} x^{3} + 1260 \, a^{5} b^{2} x^{2} + 420 \, a^{6} b x \log \left (x\right ) - 60 \, a^{7}}{60 \, x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.430041, size = 85, normalized size = 0.99 \begin{align*} - \frac{a^{7}}{x} + 7 a^{6} b \log{\left (x \right )} + 21 a^{5} b^{2} x + \frac{35 a^{4} b^{3} x^{2}}{2} + \frac{35 a^{3} b^{4} x^{3}}{3} + \frac{21 a^{2} b^{5} x^{4}}{4} + \frac{7 a b^{6} x^{5}}{5} + \frac{b^{7} x^{6}}{6} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.17345, size = 104, normalized size = 1.21 \begin{align*} \frac{1}{6} \, b^{7} x^{6} + \frac{7}{5} \, a b^{6} x^{5} + \frac{21}{4} \, a^{2} b^{5} x^{4} + \frac{35}{3} \, a^{3} b^{4} x^{3} + \frac{35}{2} \, a^{4} b^{3} x^{2} + 21 \, a^{5} b^{2} x + 7 \, a^{6} b \log \left ({\left | x \right |}\right ) - \frac{a^{7}}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]